home *** CD-ROM | disk | FTP | other *** search
- global gTToolsInstalled, gTTKName,gHTile
- put line ln of (alternatetext of window wn) into nwn
- if number of words in nwn¡0 then
- if there is not a window nwn then
- cbusy
- if (gHTile="" or gHTile>100) then put 0 into gHTile
- maxmem
- if WinSpace(nwn,"R") then
- TextXWindow 32051,nwn,true,5
- if there is a window nwn then
- isEBW nwn
- set the saveRezName of window nwn to nwn
- if (gTToolsInstalled = "true") then
- get getstackpath() & gTTKName
- else
- get getstackpath()&"the library"
- end if
- set savefilename of window nwn to it
- put offsetR("5,"&gHTile+205&",318,"& gHTile+360) into r
- add 12 to gHTile
- set rect of window nwn to r
- send readRez to window nwn
- set lineheight of window nwn to 15
- set the textselection of window nwn to "0,0"
- set returnclickline of window nwn to false
- if the optionkey = "down" then
- set saveChanges of window nwn to true
- set saveMethod of window nwn to "Resource"
- set the editstate of window nwn to 2
- else
- set saveChanges of window nwn to false
- end if
- set saveAlertID of window nwn to GetDlgID(328)
- set dontwrap of window nwn to false
- if the number of chars in the text of window nwn > 0 then
- set visible of window nwn to true
- send endEdit to window nwn
- else
- close window nwn
- beep
- answer tStr("LibMsg",36)&"e&nwn"e&"."
- end if
- else
- loMem nwn
- end if
- else
- loMem nwn
- end if
- end if
- end if